package com.bjsxt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bjsxt.domain.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
    /**
* @date:2022/1/3 10:01
* @author:yang
*/
public interface SysRoleService extends IService<SysRole>{

        boolean isSuperAdmin(Long userId);

        /**
         * 根据角色名称进行模糊分页查询
         * @param page
         * @param name
         * @return
         */
        Page<SysRole> findByPage(Page<SysRole> page, String name);
    }
